package exceptions;

import game.GoBoard;

public class ImpossibleMoveException extends Exception {
	
	private GoBoard board;
	private int position;

	public ImpossibleMoveException(GoBoard board, int position) {
		this.board = board;
		this.position = position;
	}
	
	public String toString() {
		//TODO print move coordinates
		return "Impossible move : move "+position+", must be between 0 and "+(board.getSize()*board.getSize()-1);
	}
}
